Please, load saves to prevent bugs (it helps in most cases),
before battle (where bug is) or location, then change order of actions:
walk around, open/close inventory etc.

To understand difference between battles and "peaceful" position, please, pay attention, that:
you see black screen with rotating saw at the centre when battle is starting.